<?php
class Comment {
	var $name;
	var $location;
	var $message;
	var $dt_time;
	
	public static function getCommentList($result) {
		$comments = array();
		while ($row = mysql_fetch_array($result)) {
			$comment = new Comment();
			$comment->name = $row["name"];
			$comment->location = $row["location"];
			$comment->message = $row["message"];
			$comment->dt_time = $row["dt"];
			
			$comments[] = $comment;
		}
		return $comments;
	}
}
?>
